Skip to content

Navie Bayes

Bayesian Classification

Let the dataset T be:

T={(x1,y1),(x2,y2),,(xN,yN)}
  • Each input xi is represented as:xi=(x1,,xn)
  • Each output yi belongs to a class ck, where k=1,,K.

The probability of a class ck given input x is calculated as:

P(y=ckx)=P(y=ck)P(xy=ck)kP(y=ck)P(xy=ck)P(y=ck|x)P(y=ck)P(x|y=ck)P(y=ck|x)P(y=ck)jP(xj|y=ck)